package firm;

public class Client extends Thread{
	//private Koordynator koordynator;
	private Product newProduct;
	private int m_nLiczba;
	private Product[] product_array;
	public Client(int Liczba, Product[] product_array) 
	{
		//this.koordynator = s;
		this.m_nLiczba = Liczba;
		this.product_array=product_array;
	}
	public void run() 
	{
		while(true){
			//synchronized(koordynator){

			GlobalData.cTalking.kup(this.m_nLiczba, product_array);

    	try {
    		sleep((int)(GlobalData.CLIENT_SLEEP));
    	} 
    	catch (InterruptedException e) {  }
		}
		//}
	}
}
